package day16;

public class Exec2 {
    public static void main(String[] args){
        Ball a = new Ball(5);
        Ball a2 = new Ball(1);
        System.out.println(a.toString());
        System.out.println(a2.toString());
    }
}

class Ball{
    int number;
    public Ball(int number){
        this.number = number;
    }

    @Override
    public String toString(){
        return number + "";
    }
}
